a = [ [1, 2, 3, 0],
	  [4, 5, 6, 0],
	  [7, 8, 9, 0] ]

#print len(a)
#print len(a[0])

for x in a:
	for y in x:
		print y,


